package com.itxx.homeWork.Abstract;

//运动员类
public class Athlete extends Person {

    @Override
    public void eat() {
        System.out.println("吃营养餐");
    }

    private String classRoom;

    public Athlete() {
    }

    public Athlete(String id, String name, String gender, int age, String classRoom) {
        super(id, name, gender, age);
        this.classRoom = classRoom;
    }

    public String getClassRoom() {
        return classRoom;
    }

    public void setClassRoom(String classRoom) {
        this.classRoom = classRoom;
    }
}